{% extends "base.html" %}
{% block title %}氧化钙|登录账号{% endblock %}
{% block head %}<link rel="stylesheet" href="static/css/input.css"> {% endblock %}
{% block body %}
<form action = "/login" method = post>
   {{ form.csrf_token }}
   <div class="ipt_frame">
      <div class="ipt_frame_inside">
         <h4>登录账号</h4>
 
         {{ form.username }}
         {% for error in form.username.errors %}
            <p class="warning">{{ error }}</p>
         {% endfor %}
         {{ form.password }}
         {% for error in form.password.errors %}
            <p class="warning">{{ error }}</p>
         {% endfor %}
         {% for message in get_flashed_messages() %}
            <p class="warning">{{ message }}</p>
         {% endfor %}
         {{ form.submit }}
      </div>
   </div>
 </form>
{% endblock %}
